{# One collection in the drawer: its indexing job (followed as it runs, pushed, or how the last one ended), each file it indexed (its type, chunks and when; opened in Overseer > Code, re-indexed or removed from its row's menu); sources to add (the steps, in the dialog), and the whole collection re-indexed or deleted, behind "...". #} {% from "components/macros/layout.html" import card, dialog_title, dropdown, menu_item %} {% from "components/macros/table.html" import data_table %} {% from "components/macros/form.html" import action %} {% macro file_actions(row) -%} {% call dropdown(options=True) %} {% if row.source.url %}{{ menu_item("Open in Code", url=row.source.url) }}{% endif %} {{ menu_item("Re-index", row.reindex) }} {{ menu_item("Remove", row.remove, danger=True) }} {% endcall %} {%- endmacro %}